/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * License); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

/*

 * Copyright (c) 2017, Open AI Lab
 * Author: bingzhang@openailab.com
 */
#ifndef _CROP_PARAM_HPP_
#define _CROP_PARAM_HPP_

#include <cstdlib>
#include "parameter.hpp"

namespace TEngine {

struct CropParam : public NamedParam
{
    int num_args;
    int offset_h;
    int offset_w;
    int offset_c;    
    int crop_h;
    int crop_w;
    bool center_crop;
    int axis;
    int flag;
    DECLARE_PARSER_STRUCTURE(CropParam)
    {
        DECLARE_PARSER_ENTRY(num_args);
        DECLARE_PARSER_ENTRY(offset_h);
        DECLARE_PARSER_ENTRY(offset_w);
        DECLARE_PARSER_ENTRY(offset_c);
        DECLARE_PARSER_ENTRY(crop_h);
        DECLARE_PARSER_ENTRY(crop_w);
        DECLARE_PARSER_ENTRY(center_crop);
        DECLARE_PARSER_ENTRY(flag);   
        DECLARE_PARSER_ENTRY(axis);                
    };
};

}    // namespace TEngine

#endif
